﻿<Page x:Class="ProggersWTC.Views.PloegenViews.PloegenPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	Title="PloegenPage">

    <Grid>
        <DataGrid AutoGenerateColumns="False" Height="295" HorizontalAlignment="Left" Margin="30,50,0,0" Name="ploegenDataGrid" VerticalAlignment="Top" Width="564"
                  DataContext="{Binding}">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Id}" Header="ID" IsReadOnly="True"/>
                <DataGridTemplateColumn Header="Afbeelding" Width="SizeToCells" IsReadOnly="True">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Image Source="{Binding Icon}" />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTextColumn Binding="{Binding Naam}" Header="Ploegnaam" IsReadOnly="True"/>
                <DataGridTextColumn Binding="{Binding Reeksen.Naam}" Header="Reeks" IsReadOnly="True" />
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Page>
